<?php
/**
 * Global configuration for XiteCode
 *
 * @copyright (c) 2006 A.Sleep <a.sleep@asleep.net> under the GNU GPL version 2
 * @author A.Sleep <a.sleep@asleep.net>
 */

/**
 * Set iniFile to the full path to your xitecode.ini
 * IMPORTANT! Do not place this ini file in a web-accessable
 * directory. If you must include an .htaccess directive to deny
 * access to .ini files.
 */
$iniFile = dirname(__FILE__).'/../xitecode.ini';

/* No more configuration needed */

$GLOBALS['cfg'] = parse_ini_file($iniFile);

require dirname(__FILE__).'/Paths.php';

require RELATIVE_ROOT.'Classes/Session.php';

$Session = new Session();
$Session->start();

// debug stuff
define('DEBUG', false);

// Base object
require RELATIVE_ROOT.'Classes/XiteCode.php';
$XiteCode = new XiteCode();

require RELATIVE_ROOT.'Classes/Xception.php';

require RELATIVE_ROOT.'Classes/Tools.php';

require RELATIVE_ROOT.'Classes/Database.php';
$GLOBALS['db'] = Database::factory();

require RELATIVE_ROOT.'Classes/Template.php';
$Template = new Template();

$Template->assign('pages', XiteCode::getPagesInMenu());

define('CURRENT_UID', 1);

?>
